<template>
	<view>
		<web-view :src="webviewUrl" bindload="bindHideLoading" bindmessage="getMessage"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				webviewUrl: '',
			}
		},
		/**
		* 生命周期函数--监听页面加载
		*/
		onLoad(options) {
			//https://w7.hoomuu.net/app/index.php?i=5&c=entry&action=room&roomid=21&do=live&m=muu_classroom_plugin_livecourse
			var that = this
			console.log(options)
			
			if(options.sys_type == 'out_url'){
				this.webviewUrl = options.url
			}
			
			if(options.params !== undefined){
				let params = JSON.parse(options.params)
				let type = params.type
				let web_url = params.web_url
				//console.log(options.params,'params')
				this.webviewUrl = decodeURIComponent(decodeURIComponent(web_url))
			}else{
				let web_url = options.url
				
				this.webviewUrl = decodeURIComponent(decodeURIComponent(web_url))
			}
		},

		methods: {
			
		}
	}
</script>

<style>

</style>
